package com.ftn;

import java.awt.*;
import java.util.ArrayList;
import java.util.List;

/**
 * User: Jack Fu
 * Date: 2024/9/4
 * Time: 16:03
 * To change this template use File | Settings | File Templates.
 * Description:
 */
public class GameUtils {

    public static Image bgImage = Toolkit.getDefaultToolkit().getImage("imgs/bg5.jpg");
    public static Image bossImage = Toolkit.getDefaultToolkit().getImage("imgs/boss.png");
    public static Image baozhaImage = Toolkit.getDefaultToolkit().getImage("imgs/baozha0.png");
    public static Image planeImage = Toolkit.getDefaultToolkit().getImage("imgs/plane1.png");
    public static Image zidan1Image = Toolkit.getDefaultToolkit().getImage("imgs/zidan1.png");
    public static Image zidan2Image = Toolkit.getDefaultToolkit().getImage("imgs/zidan2.png");
    public static Image zidan3Image = Toolkit.getDefaultToolkit().getImage("imgs/zidan3.gif");
    public static Image diji1Image = Toolkit.getDefaultToolkit().getImage("imgs/diji1.png");
    public static Image diji2Image = Toolkit.getDefaultToolkit().getImage("imgs/diji2.png");
    public static Image dijizidanImage = Toolkit.getDefaultToolkit().getImage("imgs/dijizidan.png");
    public static Image boss1Image = Toolkit.getDefaultToolkit().getImage("imgs/boss1.png");
    public static Image boss2Image = Toolkit.getDefaultToolkit().getImage("imgs/boss2.png");
    public static Image boss1zidanImage = Toolkit.getDefaultToolkit().getImage("imgs/boss1zidan.png");
    public static Image boss2zidanImage = Toolkit.getDefaultToolkit().getImage("imgs/boss2zidan.png");
    public static Image shengjiImage = Toolkit.getDefaultToolkit().getImage("imgs/shengji.png");
    public static Image bosszidanImage = Toolkit.getDefaultToolkit().getImage("imgs/bosszidan.png");
    public static Image warringImage = Toolkit.getDefaultToolkit().getImage("imgs/warring.png");

    // 子弹集合
    public static List<ShellObj> shellObjs = new ArrayList<>();
    public static List<Enemy2BulletObj> dijizidanObjs = new ArrayList<>();
    // 元素集合
    public static List<GameObj> gameObjs = new ArrayList<>();
    // 敌机
    public static List<GameObj> diji1Objs = new ArrayList<>();
    public static List<GameObj> diji2Objs = new ArrayList<>();

    public static List<GameObj> removeObjs = new ArrayList<>();
    // 爆炸集合
    public static List<ExplodeObj> explodeObjs = new ArrayList<>();
    // boss集合
    public static List<Boss1Obj> boss1Objs = new ArrayList<>();
    public static List<Boss2Obj> boss2Objs = new ArrayList<>();
    // boss子弹集合
    public static List<Boss1BulletObj> boss1BulletObjs = new ArrayList<>();
    public static List<Boss2BulletObj> boss2BulletObjs = new ArrayList<>();

    public static List<GiftObj> giftObjs = new ArrayList<>();

    // 最终boss子弹
    public static List<BossBulletObj> bossBulletObjs = new ArrayList<>();


    public static void drawWord(Graphics g, String word, int x, int y, int size, Color color) {
        g.setFont(new Font("微软雅黑", Font.BOLD, size));
        g.setColor(color);
        g.drawString(word, x, y);

    }
}
